package com.xbongbong.paas.pojo;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.pro.formdata.pojo.SaasNeedRedundantAttrPojo;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author 吴峰
 * @date 2022/11/21 8:59
 */
@Data
public class ValidateReturnPoJo implements Serializable {

    private static final long serialVersionUID = 1195612827901106117L;
    /**
     * 所属部门id
     */
    private Long departmentId;

    /**
     * saas所需的特殊传参pojo
     */
    private SaasNeedRedundantAttrPojo saasNeedRedundantAttrPoJo;

    /**
     * 是否来自审批
     */
    private Boolean fromApproval;

    /**
     * 数据
     */
    private JSONObject data;

    /**
     * 可见部门
     */
    private List<Object> visbleDept;
    /**
     * 可见人
     */
    private List<Object> visbleUser;

    public ValidateReturnPoJo() {
    }

    public ValidateReturnPoJo(Long departmentId, SaasNeedRedundantAttrPojo saasNeedRedundantAttrPoJo, Boolean fromApproval, JSONObject data,
                              List<Object> visbleDept, List<Object> visbleUser) {
        this.departmentId = departmentId;
        this.saasNeedRedundantAttrPoJo = saasNeedRedundantAttrPoJo;
        this.fromApproval = fromApproval;
        this.data = data;
        this.visbleDept = visbleDept;
        this.visbleUser = visbleUser;
    }
}
